<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h3>欢迎登陆 </h3>

<a href="/user/add.shtml">add</a><br><br>

<a href="/user/logout.shtml">注销</a>			<br><br>

		<table border="1">
			<tr>
				<th>id</th>
				<th>user</th>
				<th>pwd</th>
				<th>delete</th>
				<th>update</th>
			</tr>
		
		<c:forEach items="${listUser}" var="li">
		
			<tr>
				<td>${li.uid} </td>
				<td>${li.uname} </td>
				<td>${li.upassword} </td>
				<td>
					<a href="/user/delete${li.uid}.shtml">delete</a>
				</td>
				<td>
					<a href="/user/update.shtml?uid=${li.uid} ">update</a>
				</td>
			</tr>
		</c:forEach>
		
		</table>
		
</body>
</html>